/*
 * @(#)UUID.java
 *
 * Copyright 2012 by ShenY BIS, All rights reserved.
 */

package com.bis.framework.util.string;

import org.safehaus.uuid.UUIDGenerator;

/**
 * UUID
 * 
 * @author BIS 2012-12-24
 */
public final class UUID
{

    /**
     * Version Id
     */
    private static final long serialVersionUID = -4856846361193249489L;

    /**
     * UUID
     * @Description:
     * @return
     */
    public static String getUUID()
    {
        UUIDGenerator generator = UUIDGenerator.getInstance();
        org.safehaus.uuid.UUID uuid = generator.generateRandomBasedUUID();
        return uuid.toString();
    }

    /**
     * main
     * @Description:
     * @param args
     */
    public static void main(String[] args)
    {
        System.out.println(UUID.getUUID());
    }
}